/* Functions to extract info from field name. */

function extractType(ColName) {
        tmp = ColName.split('_', 6);
        return parseInt(tmp[0]);
}

function extractRow(ColName) {
        tmp = ColName.split('_', 6);
        return parseInt(tmp[2]);
}

function extractCol(ColName) {
        tmp = ColName.split('_', 6);
        return parseInt(tmp[3]);
}

function extractGrp(ColName) {
        tmp = ColName.split('_', 6);
        return parseInt(tmp[1]);
}

function extractTag(ColName) {
        tmp = ColName.split('_', 6);
        return tmp[4];
}

function extractCalc(ColName) {
        tmp = ColName.split('_', 6);
        return tmp[5];
}
